import http from '@/utils/http';//导入接口域名列表
import host_one from "./host/host"
import host_one_go from "./host/host_go"
// let model = "goods"
const request = {
  goods_list(params, callback) {
    // params.model = model
    http.post(host_one_go + "/goodslist", params, callback)
  },
  filter_list(params, callback) {
    // params.model = model
    http.post(host_one_go + "/goodslist", params, callback)
  },
  add_goods(params, callback) {
    // params.model = model
    http.post(host_one + "/goodsadd", params, callback)
  },
  edit_goods(params, callback) {
    // params.model = model
    http.post(host_one + '/goodsupdate', params, callback)
  },
  delete_goods(params, callback) {
    // params.model = model
    http.post(host_one + "/goodsdelete", params, callback)
  },
  detail_goods(params, callback) {
    // params.model = model
    http.post(host_one + "/goodsdetail", params, callback)
  }
}
export default request;
